package com.bm.server.controller;

import com.bm.common.dto.LotDto;
import com.bm.common.vo.R;
import com.bm.server.dao.LotDao;
import com.bm.server.service.intf.LotService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/19/20:36
 */
@RestController
@RequestMapping("/server/lot/")
public class LotController {
    @Resource
    private LotService service;
    @GetMapping("select.do")
    public R select(@RequestParam  Integer uid){
        return service.select(uid);
    }
    @PostMapping("save.do")
    public R save(@RequestBody LotDto dto){
        return service.save(dto);
    }
}
